﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sp2google.common.Google
{
	public static class Authentication
	{
		public static string Authenticate(string appToken)
		{
			//1. Get an unauthorized request token (OAuthGetRequestToken)
			//2. Authorize the request token (OAuthAuthorizeToken)
			//3. Exchange the authorized request token for an access token (OAuthGetAccessToken)

            return string.Empty;
		}

		/// <summary>
		/// Check existing token, see if it is still valid
		/// </summary>
		/// <param name="token"></param>
		/// <returns>Return true oif token is valid</returns>
		public static  bool CheckToken(string token)
		{
            return false;
		}
	}
}
